package com.gonsin.ta.logic.node;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.gonsin.ta.logic.enums.NodeTypeEnum;
import com.google.gson.annotations.Expose;

public class SignalNodeAdapter extends SpringNode{

    private NodeTypeEnum nodeType;

    @JsonIgnore
    @Expose(serialize = false, deserialize = false)
    private transient String signal;

    public SignalNodeAdapter(NodeComponentProxy nodeComponent) {
        super(nodeComponent);
        this.nodeType = NodeTypeEnum.SIGNAL;
        this.signal = nodeComponent.getNodeId();
    }

    @Override
    public NodeTypeEnum getNodeType() {
        return nodeType;
    }

    public String getSignal() {
        return signal;
    }
}
